home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / widget / nsIBidiKeyboard.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  109 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIBidiKeyboard.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIBidiKeyboard_h__
  6. #define __gen_nsIBidiKeyboard_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIBidiKeyboard */
  19. #define NS_IBIDIKEYBOARD_IID_STR "bb961ae1-7432-11d4-b77a-00104b4119f8"
  20.  
  21. #define NS_IBIDIKEYBOARD_IID \
  22.   {0xbb961ae1, 0x7432, 0x11d4, \
  23.     { 0xb7, 0x7a, 0x00, 0x10, 0x4b, 0x41, 0x19, 0xf8 }}
  24.  
  25. class NS_NO_VTABLE nsIBidiKeyboard : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBIDIKEYBOARD_IID)
  29.  
  30.   /**
  31.    * Determines if the current keyboard language is right-to-left
  32.    */
  33.   /* void isLangRTL (out PRBool aIsRTL); */
  34.   NS_IMETHOD IsLangRTL(PRBool *aIsRTL) = 0;
  35.  
  36.   /**
  37.    * Sets the keyboard language to left-to-right or right-to-left
  38.    * @param aLevel - if odd set the keyboard to RTL, if even set LTR 
  39.    */
  40.   /* void setLangFromBidiLevel (in PRUint8 aLevel); */
  41.   NS_IMETHOD SetLangFromBidiLevel(PRUint8 aLevel) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIBIDIKEYBOARD \
  47.   NS_IMETHOD IsLangRTL(PRBool *aIsRTL); \
  48.   NS_IMETHOD SetLangFromBidiLevel(PRUint8 aLevel); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSIBIDIKEYBOARD(_to) \
  52.   NS_IMETHOD IsLangRTL(PRBool *aIsRTL) { return _to IsLangRTL(aIsRTL); } \
  53.   NS_IMETHOD SetLangFromBidiLevel(PRUint8 aLevel) { return _to SetLangFromBidiLevel(aLevel); } 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  56. #define NS_FORWARD_SAFE_NSIBIDIKEYBOARD(_to) \
  57.   NS_IMETHOD IsLangRTL(PRBool *aIsRTL) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLangRTL(aIsRTL); } \
  58.   NS_IMETHOD SetLangFromBidiLevel(PRUint8 aLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLangFromBidiLevel(aLevel); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsBidiKeyboard : public nsIBidiKeyboard
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSIBIDIKEYBOARD
  69.  
  70.   nsBidiKeyboard();
  71.  
  72. private:
  73.   ~nsBidiKeyboard();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard)
  81.  
  82. nsBidiKeyboard::nsBidiKeyboard()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsBidiKeyboard::~nsBidiKeyboard()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* void isLangRTL (out PRBool aIsRTL); */
  93. NS_IMETHODIMP nsBidiKeyboard::IsLangRTL(PRBool *aIsRTL)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* void setLangFromBidiLevel (in PRUint8 aLevel); */
  99. NS_IMETHODIMP nsBidiKeyboard::SetLangFromBidiLevel(PRUint8 aLevel)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103.  
  104. /* End of implementation class template. */
  105. #endif
  106.  
  107.  
  108. #endif /* __gen_nsIBidiKeyboard_h__ */
  109.